package com.ma;

import android.os.Bundle;
import android.view.Window;

import com.ma.user.LoginActivity;

import java.util.Date;
import java.util.concurrent.TimeUnit;

import base.BaseActivity;
import bean.SycnRequstBean;
import database.dao.DBManager;
import httpUtil.Api;
import httpUtil.Http;
import rx.Observable;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

public class FirstActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        requestWindowFeature(Window.FEATURE_NO_TITLE);//remove title bar  即隐藏标题栏
        getSupportActionBar().hide();// 隐藏ActionBar
        setContentView(R.layout.activity_first);

        DBManager.getInstance();

        Observable.timer(1000, TimeUnit.MILLISECONDS)
                .subscribeOn(Schedulers.newThread())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(aLong -> {startActivity(LoginActivity.class);});
    }

}
